Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] Test event emit when user withdraw fund's balance #170

Merged
merged 6 commits into from
Nov 1, 2024

Conversation

DiegoB1911
Copy link
Contributor

@DiegoB1911 DiegoB1911 commented Oct 31, 2024

Pull Request

Changes description

This PR introduces a test to verify that the correct event is emitted when the withdraw function is called

Current output

image

Time spent breakdown

Give a breakdown on the time you used to solve the issue you are closing.

Comments

Any other details you might want to share.

@EmmanuelAR
Copy link
Collaborator

hey @DiegoB1911 could you please merge your code with the latest changes in dev and fix the conflicts ?

@DiegoB1911
Copy link
Contributor Author

Sure, I'm working on it

contracts/src/fund.cairo Outdated Show resolved Hide resolved
// approve
cheat_caller_address(token_address, FUND_MANAGER(), CheatSpan::TargetCalls(1));
token_dispatcher.approve(contract_address, goal);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that you create the setup_donation method to avoid to repeat code but in this case please leave it ass the original

@EmmanuelAR
Copy link
Collaborator

Exc work Diego @DiegoB1911 some changes tkssss

contracts/src/fund.cairo Outdated Show resolved Hide resolved
Copy link
Collaborator

@EmmanuelAR EmmanuelAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@EmmanuelAR EmmanuelAR merged commit 8c19158 into web3wagers:dev Nov 1, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[test] Test event emit when user withdraw fund's balance
2 participants